package com.cxy.datawarehouse.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.*;
import java.io.Serializable;

@Data
@Entity
@ApiModel("元素类别库")
@Table(name = "t_element_type")
@DynamicInsert
@DynamicUpdate
public class ElementType implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * 主键 元素类别编号
     */
    @Id
    @ApiModelProperty("元素类别编号")
    @Column(name = "element_type_id", nullable = false)
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long elementTypeId;

    /**
     * 类别名称
     */
    @ApiModelProperty("类别名称")
    @Column(name = "type_name", nullable = false)
    private String typeName;

    /**
     * 备注
     */
    @ApiModelProperty("备注")
    @Column(name = "notes", nullable = false)
    private String notes;
}
